class CommentsController < ActionController::Base

  def index
    @comments = Comment.find(:all)
  end
  def new
    @comment = Comment.new
  end
  def edit
    @comment = Comment.find(params[:id])
  end
  def update
    @comment.update_attributes(Comment.find(params[:id]), params[:comment])
  end
  def create
    @comment = Comment.create(params[:comment])
  end
  def destroy
    @comment = Comment.destroy(params[:id])
  end

end